import com.dmotiko.bolacua.*
import com.dmotiko.general.*

class PromosLoader
extends DataXMLLoader {

	private function parserFunction(){
		var promos:Array = xml.firstChild.childNodes;
			var promosData:Array = new Array();
			var photo:PhotoData;
			for (var i:Number = 0; i < promos.length; i++) {
				photo = new PhotoData();
				photo.setTitle(promos[i].attributes.title);
				photo.setDescription(promos[i].attributes.description);
				photo.setSrc(promos[i].attributes.src);
				photo.setPromo(true);
				promosData.push(photo);
			}
		this.data = promosData;
		loadEnd();
	}
	
}